package com.xuecheng.manage_course.service;

import com.xuecheng.framework.domain.course.CourseBase;
import com.xuecheng.manage_course.dao.CourseBaseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * @author jl
 * @description
 * @date 2019-08-22 15:39
 */
@Service
public class CourseBaseService {
    @Autowired
    private CourseBaseRepository courseBaseRepository;

    public CourseBase getById(String id){
        Optional<CourseBase> optional = courseBaseRepository.findById(id);
        return optional.orElse(null);
    }

}
